import request from '@/utils/request'

// 查询宿舍列列表
export function listDormitorys(query) {
  return request({
    url: '/system/dormitorys/list',
    method: 'get',
    params: query
  })
}

// 查询宿舍列详细
export function getDormitorys(id) {
  return request({
    url: '/system/dormitorys/' + id,
    method: 'get'
  })
}

// 新增宿舍列
export function addDormitorys(data) {
  return request({
    url: '/system/dormitorys',
    method: 'post',
    data: data
  })
}

// 修改宿舍列
export function updateDormitorys(data) {
  return request({
    url: '/system/dormitorys',
    method: 'put',
    data: data
  })
}

// 删除宿舍列
export function delDormitorys(id) {
  return request({
    url: '/system/dormitorys/' + id,
    method: 'delete'
  })
}
